package com.huitone.gddw.service.dto;

import com.huitone.gddw.dao.entity.GateSwtich;

/**
 * 短信网关双线切换日志 DTO 对象
 * @author wuluodan
 *
 */
public class GateSwtichDTO {

	private String recId;
	
	private String gateLinkId;
	
	private String gateLinkName;
	
	private String lineType;

	public GateSwtichDTO() {}
	
	public GateSwtichDTO(GateSwtich entity) {
		this.setRecId(entity.getRecId());
		this.setGateLinkId(entity.getGateLinkId());
		this.setLineType(entity.getLineType());
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}

	public String getGateLinkId() {
		return gateLinkId;
	}

	public void setGateLinkId(String gateLinkId) {
		this.gateLinkId = gateLinkId;
	}

	public String getGateLinkName() {
		return gateLinkName;
	}

	public void setGateLinkName(String gateLinkName) {
		this.gateLinkName = gateLinkName;
	}

	public String getLineType() {
		return lineType;
	}

	public void setLineType(String lineType) {
		this.lineType = lineType;
	}

	public String getLineTypeStr() {
		if (null == this.lineType) 
			return "未知";
		if (this.lineType.equals("1")) 
			return "专线";
		if (this.lineType.equals("2")) 
			return "互联网";
		return "未知";
	}
	
}
